var baseUrl = $(".baseUrl").text();

if(navigator.geolocation) {
   
	navigator.geolocation.getCurrentPosition(function(position) {
   
	    $.getJSON(baseUrl+'/index/gps/latitude/' + position.coords.latitude + '/longitude/' + position.coords.longitude,
	        function(j){}); 
	    }, function() {
	      handleNoGeolocation(true);
    });
} 


